//
//  ArticleModel.m
//  Style
//
//  Created by dllo on 15/9/23.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "ArticleModel.h"

@implementation ArticleModel
- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.name forKey:@"name"];
    [aCoder encodeObject:self.enname forKey:@"enname"];
    [aCoder encodeObject:self.coverimg forKey:@"coverimg"];
    [aCoder encodeObject:self.type forKey:@"type"];
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self) {
        
        self.name = [aDecoder decodeObjectForKey:@"name"];
        self.enname = [aDecoder decodeObjectForKey:@"enname"];
        self.coverimg = [aDecoder decodeObjectForKey:@"coverimg"];
        self.type = [aDecoder decodeObjectForKey:@"type"];
    }
    return self;
}
@end
